const $toast = (str, option) => {
	if (!str) {
		throw new Error('请填写正确的提示');
	}
	option = option ? option : {};
	uni.showToast({
		title: str,
		icon: 'none',
		duration: option.duration ? option.duration : 2000
	})
}

export default {
	$toast,
}